import React, { useEffect, useState } from 'react';
import { Button } from 'antd-mobile';
import request from '@/utils/request';

function Home() {
  const [p, setP] = useState(1)
  useEffect(() => {
    asd()
  }, [])
  function asd() {
    request.get('https://sit-rmcloud.vankeservice.com/api/user/v1/user').then((res: any) => {
      console.log(res)
    })
  }
  return (
    <div className="text-red-500">
      Home
      <Button color="primary" onClick={() => setP(3)}>asdasd--{p}</Button>
      <h1>我的大声的</h1>
      <h2>我的大声的</h2>
      <h3>我的大声的</h3>
      <h4>我的大声的</h4>
      <p>12312</p>
      <ul>
        <li>123</li>
        <li>123</li>
      </ul>
      <ol>
        <li>123</li>
        <li>123</li>
      </ol>
    </div>
  );
}

export default Home;
